$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .container {
    position: relative;

    .banner {
      width: 100%;
      position: relative;

      .bg {
        img {
          width: 100%;
          display: block;
          object-fit: cover;
        }
      }

      .text {
        position: absolute;
        left: 10vw;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;

        .p1 {
          color: #030303;
          font-size: $fontSize_54;
          font-weight: bold;
          display: flex;
          align-items: flex-start;

          svg {
            width: 21/$f+vw;
            display: block;
            margin: 0.7vw 0 0 0.7vw;
          }
        }

        .p2 {
          color: #464646;
          font-size: $fontSize_36;
          margin-top: 0.6vw;
          font-family: 'SourceHanSansCN-Light';
          ;
        }
      }
    }

    .main {
      margin: 3vw 10vw;

      .section1 {
        width: 70%;
        display: flex;
        margin: 0 auto;
        border: 1px solid #CFCFCF;

        input {
          width: 90%;
          color: rgba(0, 0, 0, .5);
          font-size: $fontSize_22;
          font-family: 'SourceHanSansCN-Light';
          ;
          padding: 1.2vw 0;
          outline: none;
          border: none;
          text-indent: 1.5vw;
        }

        .btn {
          width: 12%;
          background: #0060B0;
          color: #FFF;
          font-size: $fontSize_22;
          display: flex;
          align-items: center;
          justify-content: center;
          position: relative;
          cursor: pointer;

          &::after {
            content: '';
            display: block;
            position: absolute;
            right: -0.6vw;
            top: 0;
            background-color: rgba(0, 166, 229, 1);
            width: 0.6vw;
            height: 100%;
          }
        }
      }

      .section2 {
        border-top: 3px solid #0060B0;
        margin: 3vw 0 1.5vw;

        .types {
          .type {
            display: flex;
            border-bottom: 1px solid #EBEBEB;
            padding: 1.5vw 0;
            justify-content: space-between;

            .name {
              color: #000;
              font-size: $fontSize_22;
              font-weight: 600;
              width: 5vw;
            }

            .chose {
              display: flex;
              width: calc(98% - 5vw);
              flex-wrap: wrap;

              .i {
                display: flex;
                align-items: center;
                margin-left: 2vw;
                cursor: pointer;

                .k {
                  width: 18/$f+vw;
                  height: 18/$f+vw;
                  border: 1px solid #CFCFCF;
                  transition: all 600ms;
                }

                p {
                  color: #464646;
                  font-size: $fontSize_22;
                  margin-left: 0.8vw;
                  transition: all 600ms;
                }

                &:hover {
                  .k {
                    background: #0060B0;
                    border-color: #0060B0;
                  }

                  p {
                    color: #006AB5;
                  }
                }
              }

              .active {
                .k {
                  background: #0060B0;
                  border-color: #0060B0;
                }

                p {
                  color: #006AB5;
                }
              }
            }
          }
        }

        .total {
          color: #666;
          font-size: $fontSize_14;
          margin-top: 1.5vw;
        }
      }

      .section3 {
        .list {
          display: flex;
          flex-wrap: wrap;
          width: 102%;
          margin-left: -1.4%;

          a {
            width: 23.5%;
            display: block;
            margin-left: 1.4%;
            margin-bottom: 1vw;

            .pic {
              background-color: rgba(228, 240, 255, .4);
              overflow: hidden;

              img {
                width: 100%;
                display: block;
                object-fit: contain;
                transition: all 600ms;
              }
            }

            p {
              color: #000;
              font-size: $fontSize_16;
              font-family: 'SourceHanSansCN-Light';
              ;
              margin: 0.8vw 0;
              transition: all 600ms;
            }

            &:hover {
              .pic {
                img {
                  transform: scale(1.05);
                }
              }

              p {
                color: #0060B0;
              }
            }
          }
        }
      }
    }

  }



  @media screen and (max-width: 1024px) {
    padding-top: 60px;

    .container {
      .banner {
        .bg {
          img {
            height: 150px;
          }
        }

        .text {
          left: 5%;

          .p1 {
            font-size: 24px;
            svg{
              width: 10px;
            }
          }

          .p2 {
            font-size: 18px;
          }
        }
      }

      .main {
        margin: 20px 5% 60px 5%;

        .section1 {
          width: 90%;

          input {
            font-size: 16px;
            padding: 10px 0;
            text-indent: 10px;
          }

          .btn {
            width: 25%;
            font-size: 16px;

            &::after {
              width: 6px;
              right: -6px;
            }
          }
        }

        .section2 {
          margin: 20px 0;

          .types {
            .type {
              padding: 15px 0;
              flex-direction: column;

              .name {
                font-size: 16px;
                width: fit-content;
              }

              .chose {
                width: 100%;
                margin-top: 15px;

                .i {
                  margin: 0 10px 10px 0;

                  .k {
                    width: 15px;
                    height: 15px;
                  }

                  p {
                    font-size: 14px;
                    margin-left: 5px;
                  }
                }
              }
            }
          }

          .total {
            font-size: 14px;
            margin-top: 15px;
          }
        }

        .section3 {
          .list {
            width: 100%;
            margin-left: 0;
            a{
              width: 100%;
              margin-left: 0;
              margin-bottom: 20px;
              p{
                font-size: 16px;
                margin-top: 10px;
              }
            }
          }
        }
      }
    }
  }
}